﻿<UserControl x:Class="TextAdventures.Quest.EditorControls.ExitsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:this="clr-namespace:TextAdventures.Quest.EditorControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500">
    <UserControl.Resources>
        <Style x:Key="header" TargetType="{x:Type GridViewColumnHeader}">
            <Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
            <Setter Property="Padding" Value="6,3,3,3"></Setter>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <this:CompassControl x:Name="compassControl" />
        
        <WindowsFormsHost Name="toolbarHost" Grid.Row="1" Margin="0,10,0,0">
            <this:WFToolbar Name="toolbar" AddClicked="toolbar_AddClicked" EditClicked="toolbar_EditClicked" DeleteClicked="toolbar_DeleteClicked" MoveUpClicked="toolbar_MoveUpClicked" MoveDownClicked="toolbar_MoveDownClicked" />
        </WindowsFormsHost>

        <ListView Name="listView" Grid.Row="2" SelectionChanged="listView_SelectionChanged" MouseDoubleClick="listView_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn HeaderContainerStyle="{StaticResource header}" Width="120" Header="To" DisplayMemberBinding="{Binding Path=To}"></GridViewColumn>
                    <GridViewColumn HeaderContainerStyle="{StaticResource header}" Width="120" Header="Alias" DisplayMemberBinding="{Binding Path=Alias}"></GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>
